function Car(make,model,year){
    this.make=make;
    this.model=model;
    this.year=year;
    this.star=function(){
        console.log(`The car is staring`);
    }
}
var obj= new Car()
obj.make='Tesla'
obj.model='model x'
obj.year=2024
obj.star()